package com.bdqn.petmalldemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Lenovo
 * @since 2020-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "买家用户名")
    private String username;

    @ApiModelProperty(value = "订单商品总金额")
    private BigDecimal productPriceAmount;

    @ApiModelProperty(value = "付款总金额")
    private BigDecimal payment;

    @ApiModelProperty(value = "运费")
    private BigDecimal freight;

    @ApiModelProperty(value = "收货人姓名")
    private String shippingName;

    @ApiModelProperty(value = "收货人手机号码")
    private String shippingPhone;

    @ApiModelProperty(value = "收货人详细地址")
    private String shippingAddress;

    @ApiModelProperty(value = "收货人邮政编码")
    private String shippingZipCode;

    @ApiModelProperty(value = "附言")
    private String remark;

    @ApiModelProperty(value = "订单状态( 1:未付款 2:已付款 )")
    private Integer status;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "交易完成时间")
    private LocalDateTime finishTime;

    @ApiModelProperty(value = "交易关闭时间")
    private LocalDateTime closeTime;

    @ApiModelProperty(value = "订单超时时间")
    private LocalDateTime timeoutTime;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;




}
